﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.stats.helpers {
    import Engine.Managers.*;
    import flash.utils.*;
    import __AS3__.vec.*;
    import Modules.stats.data.*;
    import Modules.stats.*;

    public class AbstractStatsHelper {

        protected var m_statsTargets:Dictionary;

        public function AbstractStatsHelper(){
            this.m_statsTargets = new Dictionary(true);
        }
        public function register(_arg1:IStatsTarget, _arg2:String):void{
            this.m_statsTargets[_arg1] = _arg2;
        }
        public function init():void{
        }
        public function process(_arg1:IStatsTarget, _arg2:String):void{
            var _local4:StatsCountData;
            var _local3:Vector.<StatsCountData> = _arg1.getStatsCounterObject();
            for each (_local4 in _local3) {
                StatsManager.count(_arg2, _local4.ontoloogy.kingdom, _local4.ontoloogy.phylum, _local4.ontoloogy.zclass, _local4.ontoloogy.family, _local4.ontoloogy.genus, _local4.amount);
            };
        }

    }
}//package Modules.stats.helpers 
